# 暴力循环
class Solution(object):
    def twosum(self,target,nums):
        for i in range(len(nums)):
            for j in range(i+1,len(nums)):
                if nums[i]+nums[j]==target:
                    print([i,j])
S=Solution()
S.twosum(10,[1,2,3,4,5,6,7,8,9])
        